package org.jeecg.eqp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 标准工时
 * @Author: shaolong
 * @Date: 2022-10-12
 * @Version: V1.0
 */
@Data
@TableName("mes_stdtime_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_stdtime_cfg对象", description = "标准工时")
public class MesStdtimeCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private Integer recId;
    /**
     * 产线或产线组
     */
    @Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    private String line;
    /**
     * 工位
     */
    @Excel(name = "工位", width = 15, dictTable = "mes_line_op_cfg", dicText = "DESCRIPTION", dicCode = "OP")
    @Dict(dictTable = "mes_line_op_cfg", dicText = "DESCRIPTION", dicCode = "OP")
    @ApiModelProperty(value = "工位")
    private String op;
    /**
     * 工站
     */
    @Excel(name = "工站", width = 15, dictTable = "mes_line_stn_cfg", dicText = "STN", dicCode = "STN")
    @Dict(dictTable = "mes_line_stn_cfg", dicText = "STN", dicCode = "STN")
    @ApiModelProperty(value = "工站")
    private String stn;
    /**
     * 产品(PARTNO OR PARTNO_GROUP)
     */
    @Excel(name = "产品(PARTNO OR PARTNO_GROUP)", width = 15)
    @ApiModelProperty(value = "产品(PARTNO OR PARTNO_GROUP)")
    private String partno;
    /**
     * 标准工时
     */
    @Excel(name = "标准工时", width = 15)
    @ApiModelProperty(value = "标准工时")
    private BigDecimal stdTime;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
